package com.lvt.design.pattern.module.ratelimiter.v2.rule;

import lombok.Data;

import java.util.List;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/12/6
 */
@Data
public class RuleConfig {

    private List<AppRuleConfig> configs;

    @Data
    public static class AppRuleConfig {
        private String appId;
        private List<ApiLimit> limits;

        public AppRuleConfig() {
        }

        public AppRuleConfig(String appId, List<ApiLimit> limits) {
            this.appId = appId;
            this.limits = limits;
        }
    }
}